package org.apache.solr.handler.dataimport.parser.html;

import java.util.Locale;

public class IdentityHtmlMapper implements HtmlMapper
{
    public static final HtmlMapper INSTANCE = new IdentityHtmlMapper();

    public boolean isDiscardElement(String name)
    {
        return false;
    }

    public String mapSafeAttribute(String elementName, String attributeName)
    {
        return attributeName.toLowerCase(Locale.ENGLISH);
    }

    public String mapSafeElement(String name)
    {
        return name.toLowerCase(Locale.ENGLISH);
    }
}
